package com.xiangqian;

import com.xiangqian.factory.ProductFactory;
import com.xiangqian.factoryimpl.BookProductFactory;
import com.xiangqian.factoryimpl.FoodProductFactory;
import com.xiangqian.service.Product;

public class Main {
    public static void main(String[] args) {
        ProductFactory bookProductFactory = new BookProductFactory();
        Product bookProduct = bookProductFactory.createProduct();
        bookProduct.getInfo();

        ProductFactory foodProductFactory = new FoodProductFactory();
        Product foodProduct = foodProductFactory.createProduct();
        foodProduct.getInfo();
    }
}